<form  class="great-form">
  <div class="great-form-group">
    <label>禁止输入前空格:</label>
    <div class="great-input">
      <input type="text"  class="input" greatTrim="left">
    </div>
  </div>
  <div class="great-form-group">
    <label>禁止输入后空格:</label>
    <div class="great-input">
      <input type="text"  class="input" greatTrim="right">
    </div>
  </div>
  <div class="great-form-group">
    <label>禁止输入前后空格:</label>
    <div class="great-input">
      <input type="text"  class="input" greatTrim="around">
    </div>
  </div>
  <div class="great-form-group">
    <label>禁止输入全部空格:</label>
    <div class="great-input">
      <input type="text"  class="input" greatTrim>
    </div>
  </div>
</form>
